package at.ac.tuwien.ame;

import com.google.common.base.Predicate;
import org.eclipse.emf.ecore.EOperation;

/**
 * Checks whether an {@link EOperation} matches the given signature.
 */
@SuppressWarnings("all")
public class EOperationPredicate implements Predicate<EOperation> {
  private final String name;
  
  public EOperationPredicate(final String name) {
    String _replaceFirst = name.replaceFirst("\\(.+", "");
    this.name = _replaceFirst;
  }
  
  public boolean apply(final EOperation input) {
    String _name = input.getName();
    return _name.equals(this.name);
  }
}
